package com.koron.standard.orderCard.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.annocation.FillField;
import com.koron.bean.base.Attachment;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("工卡表")
@TableName("c_order_card")
public class OrderCard extends BaseBean {

	@ApiModelProperty("工卡编号")
	private String cardCode;

	@ApiModelProperty("工卡名称")
	private  String cardName;

	@ApiModelProperty("设备类别名称")
	private String equipmentType;

	@ApiModelProperty("设备类别id")
	private String equipmentTypeId;

	@ApiModelProperty("安全注意事项")
	private String notice;

	@ApiModelProperty("方案名称")
	private String schemeName;

	@FillField
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "更新时间", hidden = true)
	private Date updateTime;

	@FillField
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间", hidden = true)
	private Date createTime;

	@ApiModelProperty("验收标准")
	private String acceptance;

	@ApiModelProperty("工卡状态")
	private String status;

	@TableField(exist = false)
	@ApiModelProperty("步骤配置")
	private List<StepBean> stepList;

	@TableField(exist = false)
	@ApiModelProperty("工具列表")
	private List<ToolConnectBean> toolList;

	@TableField(exist = false)
	@ApiModelProperty("维修手册")
	private List<Attachment> manualFiles;

	@TableField(exist = false)
	@ApiModelProperty("图纸")
	private List<Attachment> drawFiles;

	@TableField(exist = false)
	@ApiModelProperty("3D模型")
	private List<Attachment> modelFiles;

/*	@TableField(exist = false)
	@ApiModelProperty("维修手册")
	private List<OrderCardFile> manualFiles;

	@TableField(exist = false)
	@ApiModelProperty("图纸")
	private List<OrderCardFile> drawFiles;

	@TableField(exist = false)
	@ApiModelProperty("3D模型")
	private List<OrderCardFile> modelFiles;*/

	@TableField(exist = false)
	@ApiModelProperty("是否提交")
	private Boolean submit = false;
}
